package com.system.data.service;

import com.system.data.dao.AgriNyywDao;
import com.system.data.model.AgriNyywArtical;
import com.system.data.model.AgriNyyw_info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgriNyywService {

    @Autowired
    AgriNyywDao agriNyywDao;

    public List<AgriNyyw_info> findAllAgriNyywInfo(){
        return agriNyywDao.findAllAgriNyywInfo();
    }

    public List<AgriNyywArtical> findArticalBytitle(String title){
        return agriNyywDao.findArticalBytitle(title);
    }

    public List<AgriNyyw_info> findAgriNyywInfoByProvince(String province){
        return agriNyywDao.findAgriNyywInfoByProvince(province);
    }
}
